package com.cn.crmsystem.pojo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "商机基本数据实体(Opportunity)")
public class Opportunity implements Serializable {

  @Id
  @ApiModelProperty("主键id（不用传值）")
  private Long id;

  @ApiModelProperty("商机名称")
  private String name;

  @ApiModelProperty("线索（客户）id")
  private Long customer_id;

  @ApiModelProperty("负责人id")
  private Long user_id;

  @ApiModelProperty("商机阶段（0：验证客户 1：需求分析 2：方案/报价）")
  private Long opp_state;

  @ApiModelProperty("商机金额")
  private Double money;

  @ApiModelProperty("预计成交时间")
  private Date time;

  @ApiModelProperty("产品编号")
  private Long product_id;

  @ApiModelProperty("创建数据人id（不用传值）")
  private Long create_id;

  @ApiModelProperty("创建数据时间（不用传值）")
  private Date create_time;

  @ApiModelProperty("删除状态（0：显示 1：隐藏）（不用传值）")
  private Long delete_state;

  @ApiModelProperty("备注")
  private String remarks;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Long getCustomer_id() {
    return customer_id;
  }

  public void setCustomer_id(Long customer_id) {
    this.customer_id = customer_id;
  }

  public Long getUser_id() {
    return user_id;
  }

  public void setUser_id(Long user_id) {
    this.user_id = user_id;
  }

  public Long getOpp_state() {
    return opp_state;
  }

  public void setOpp_state(Long opp_state) {
    this.opp_state = opp_state;
  }

  public Double getMoney() {
    return money;
  }

  public void setMoney(Double money) {
    this.money = money;
  }

  public Date getTime() {
    return time;
  }

  public void setTime(Date time) {
    this.time = time;
  }

  public Long getProduct_id() {
    return product_id;
  }

  public void setProduct_id(Long product_id) {
    this.product_id = product_id;
  }

  public Long getCreate_id() {
    return create_id;
  }

  public void setCreate_id(Long create_id) {
    this.create_id = create_id;
  }

  public Date getCreate_time() {
    return create_time;
  }

  public void setCreate_time(Date create_time) {
    this.create_time = create_time;
  }

  public Long getDelete_state() {
    return delete_state;
  }

  public void setDelete_state(Long delete_state) {
    this.delete_state = delete_state;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  @Override
  public String toString() {
    return "Opportunity{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", customer_id=" + customer_id +
            ", user_id=" + user_id +
            ", opp_state=" + opp_state +
            ", money=" + money +
            ", time=" + time +
            ", product_id=" + product_id +
            ", create_id=" + create_id +
            ", create_time=" + create_time +
            ", delete_state=" + delete_state +
            ", remarks='" + remarks + '\'' +
            '}';
  }
}
